# 贪婪模式

# import re
#
# s = 'hellooo '
# print(re.findall(r'hello+', s))


# ------
import re

s = '''
<div class="news">
	<div class="content">
		<h3>This is a header</h3>
	</div>
	<div class="content">
		<h3>This is a heade2r</h3>
	</div>
</div>
'''
result = re.findall(r'<div class="content">([\s\S]*?)</div>', s)
print(result)

# 非贪婪模式

# import re
#
# s = 'hellooo'
# print(re.findall(r'hello+?', s))